﻿using Newtonsoft.Json;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Alison.EFCore.Dto
{
	/// <summary>
	/// 权限
	/// </summary>
	[SwaggerSchema(Title = "权限AuthItemDto", Description = "权限Class")]
	public class AuthItemDto: BaseDto
	{ 
		/// <summary>
		/// 权限定义名称
		/// </summary>
		[JsonProperty("authName")]
		[SwaggerSchema(Title = "权限", Description = "权限定义名称")]
		public string AuthName { get; set; }

		/// <summary>
		/// 设定预期图标
		/// </summary>
		[JsonProperty("authKind")]
		[SwaggerSchema(Title = "权限", Description = "设定预期图标")]
		public string AuthKind { get; set; }

		/// <summary>
		/// 设定预期颜色
		/// </summary>
		[JsonProperty("authColor")]
		[SwaggerSchema(Title = "权限", Description = "设定预期颜色")]
		public string AuthColor { get; set; }

		/// <summary>
		/// 所属权限值
		/// </summary>
		[JsonProperty("authValue")]
		[SwaggerSchema(Title = "权限", Description = "所属权限值")]
		public int AuthValue { get; set; }
	}
}
